//
//  ZHTestTableViewCell.m
//  LBFacListView
//
//  Created by luckyRoy on 2017/7/6.
//  Copyright © 2017年 luckyBoyRoy@163.com. All rights reserved.
//

#import "ZHTestTableViewCell.h"
#import <Masonry/Masonry.h>

@interface ZHTestTableViewCell ()

@property (strong, nonatomic) UILabel *titleLabel;

@end

@implementation ZHTestTableViewCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creataAllView];
    }
    return self;
}

- (void)creataAllView
{
    self.titleLabel = [[UILabel alloc]init];
    [self.titleLabel setTextColor:[UIColor redColor]];
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.contentView);
    }];
    self.backgroundColor = [UIColor greenColor];
}

#pragma mark - setter

- (void)fac_updateUIViewByModel:(id)cellModel
{
    NSString *str = cellModel;
    [self.titleLabel setText:str];
}

#pragma mark - getter

+ (CGFloat)fac_heightForViewByModel:(id)cellModel
{
    return 44;
}



@end
